/**
 * 
 */
package com.dp.struct.facade;

/**
 * This is to describe facade pattern
 * 
 * The facade pattern defines a unified interface to a set of interfaces in a
 * subsystem. We write a class that simplifies and unifies the complexity
 * involved in while interacting with other subsystems
 * 
 * @author Sunaina.Sharma
 * 
 */
public class FacadeEx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		HomeTheaterFacade homeTheaterFacade = new HomeTheaterFacade(
				new Light(), new Switch(), new TV());
		homeTheaterFacade.watchMovie("Hello");
		homeTheaterFacade.endMovie("Hello");
	}

}
